package com.initial.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.initial.entity.TbCrmSmsTemplate;
import com.initial.entity.TbSystemUser;
import com.initial.mapper.TbCrmSmsTemplateMapper;
import com.initial.mapper.TbSystemUserMapper;
import com.initial.service.TbCrmSmsTemplateService;
import com.initial.service.TbSystemUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author 余小年
* @description 针对表【tb_crm_sms_template】的数据库操作Service实现
* @createDate 2021-12-14 17:22:00
*/
@Service
public class TbSystemUserServiceImpl extends ServiceImpl<TbSystemUserMapper, TbSystemUser>
    implements TbSystemUserService {
    @Resource
    TbSystemUserMapper tbSystemUserMapper;
    @Override
    public List<TbSystemUser> persons() {
        List<TbSystemUser> tbSystemUsers = tbSystemUserMapper.selectList(null);
        return tbSystemUsers;
    }

    @Override
    public IPage<TbSystemUser> searchAllPage(Page<TbSystemUser> page) {
        IPage<TbSystemUser> tbSystemUserIPage = tbSystemUserMapper.searchAllPage(page);
        return tbSystemUserIPage;
    }

    @Override
    public Integer deleteById(Integer id) {
        Integer integer = tbSystemUserMapper.deleteById(id);
        return integer;
    }
}




